import express from 'express'
import { getPlayback, getPlaybacks, startRecording } from '../controllers/playback.controller'
import { auth } from '../middleware/auth'

const router = express.Router()

router.post('/rooms/:roomId/record', auth, startRecording)
router.get('/rooms/:roomId', getPlaybacks)
router.get('/:playbackId', getPlayback)

export default router
